package Test3;

public class InstrumentTest {
    public static void testPlay(Instrument instrument){
        instrument.play();
    }

    public static void main(String[] args) {
        Violin violin=new Violin();
        testPlay(violin);
        Piano piano=new Piano();
        testPlay(piano);
    }
}
